package com.cola.decorator14;

/**
 * @Grup:com.cola.decorator
 * @Auther:cola
 * @Data:2021/3/22-2021-03-12:40
 * @version:1.0
 *
 * 装饰者的基类
 */
public class Decorator implements Drink {
    private  Drink drink;//要装饰的对象

    public Decorator(Drink drink) {
        this.drink = drink;
    }

    @Override
    public float cost() {
        return drink.cost();
    }

    @Override
    public String description() {
        return drink.description();
    }
}
